package com.tao.utilslib.ui;

import android.content.Context;
import android.widget.Toast;


/**
 * Created by Administrator on 2017/7/5.
 */

public class ToastTools {


    public static void showLong(Context context, String string) {
        if (null == context)
            return;
        try {
            Toast.makeText(context, string, Toast.LENGTH_LONG).show();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static void showShort(Context context, String string) {
        if (null == context)
            return;
        try {
            Toast.makeText(context, string, Toast.LENGTH_SHORT).show();
        } catch (Exception e) {
            e.printStackTrace();
        }

    }


}
